added coverage reports; improved tests