Added simplecov and fixed bug on pagination