adds tests for objects with keys named 'class'