Remove dependency on WindowsAzure assembly for functional tests. Remove redundant tests. Fix bugs in query pipeline and batching