Add test script for karma