Add functional tests for POST route