updating test and correcting statefull dependency