Fixed build process for tests and added test execution to csmaketest.sh