run tests on autobuild
add cunit to linker
add missing include, run proper number of tests