Code for gadget app testing