build test objects with main build

this way running tests don't do compiling