Added unit tests for Post service