fix test to work with an empty db
kaminari pagination for courses
rename courses spec to better illustrate what it does