Add tests for attr method return values