Helper code to fix homescreen tests