tests for direction