JS persistence API tests.