add karma test config and pawnTest.js