added mutator test case
added hooks and events before and after
fixed bugs