tests: slim test_goal.c by using a testsys function instead of its reimplementation.