Add karma configuration file, add basic tests