Supports `has_attribute?` on mock_model doubles

Fixes #956