Changed persist to take Item rather than string, fix in test here
Wasn't doing null check, 500 was being returned as a result
was missing . before opts in .opts