Working spec tests and code coverage