Add test for `this.autorun`