added Query Tests