using jscov for coverage testing
added error propagation to the helpers