Add PUT handler and test