updated spec, added coverage