tests for magic getters and setters