Added test for persisted method.