added some tests, and fixed the problem where the template didn't render
when you had zero rides