make random testing working