add more random test code