test class for lib_query