Add functional test for PUT route