Added pending tests for queries; added support for queries in $firebase