Updating tests using karma and istanbul code coverage