Add test

Add run test and seedrandom