random test working as expected fixed #1