move unittest helpers to seperate library to avoid linker problems