adding magic methods test