Fix unit tests; add refresh method