changed test persistence to return promises from all methods