Added unit tests for CheckMoveValidity method