added test for online mode