testcase to check stateful behaviour of SG