tests for persistance thru api