recreated junit tests provided