Attempt to make DirectionTest less platform dependent