Dogs tested to see whether they'd defend owner during home invasion