Add object files from tests.
Assign variables in default constructor.
Add missing 'const'.
Change order of CXX flags.