test online mode