fixes broken view tests

get obj_type from db_table rather than class.__name__