fixes broken view tests

get obj_type from db_table rather than class.\_\_name\_\_