Add a test class for Post