Changed getResults to use interface and added a few more tests.