Implemented test for querying the database and linked activities for the test app.