Added test cases for completions
- replaced Gql queries in Detail and Completions with ancestor queries
- added test cases for completions