Unit tests covering online and offline flows