Added simplecov. Added missing tests. Removed unused code.