Fixing issues with missing activity variable in tests