trigger_error on unknown magic method access and add tests for this