tests: Check when setting both project and build variables.