Added test of object persistance