Add more tests and make viewing post by listing work correctly