renamed api call for top results and cleaned up spec_helper