Joham, Paul: New Test, and Query method

added test for querying method and afterwards implemented the query
method in the main activity