restructured, added first test for Post class