Started unit test for test_server
Added checking for custom metadata
Added template code for getting the
      custom query.