added DirectionTest

added test methods for DirectionTest