Update karma/gulp test configs and add a test

@alex-deaconu Please review