Fix URLTestCase check for cls attribute

@incuna/backend Review?