karma/jasmin added with example test