Fixed side effect test