Added test for direction enum