jesperwe wrote about this problem that there is a Meteor.isAppTest flag to be used for this purpose. Thanks a lot.