Implemented pagination
Added test for showing single posts