In batches test @total was assigned but not used. Use it in tests instea...

...d of Post.count