Fix exception when no results are found
Add new test for get_results