added comments for karma unit tests