New test for valid and invalid movements