Fix simplecov configuration
Extract and refactor Entity.attribute