Add unit test for USE query with invalid database