Add tests for the magic methods.