Added post updating, and tests for all functionalities