added simplecov and improved test coverage