fixed issue #515 and added test case for same

same here, 3 activations but a message of 2 expected. Can you list out the expected state here?