test isgoalachievable