decouple js tests from jasmine so that we can generate them in c
moved the c example inside of test file
added a make test