fixed mistake in direction test