Example for testing using karma test framework