added test for bug4
added test for bug4 (wtf happened with last commit)