clean up karma config
add some basic tests to test/core.js