* tests: add unit tests for Direction helpers * clang-format: fix leading blank line in Direction test