added unit test for cpu optimal move