add tests for allowed_classes