write some test codes in random