Added test for invalid move