Add goal test as a lamda to Problem<T>