Add behavior and test to save endpoint