test: add a test case for persistent structures

Signed-off-by: David Scott <dave.scott@citrix.com>