new test online/offline

moved script to main.xml