Added selenium tests for query constraints