Adds a test for the getResults function