Made the test target also build if necessary