Random test creater optimization