used cmake foreach loop on all tests and compiled src into convenience library