Complete the missing test for Database:Query