updated trigger and test
updated primary query
Merge pull request #1055 from killerfish/isitupfix

IsItUp: Updated trigger and test (#1050)