tester to generate fake chains. customise the function step(..., n) to generate different chains for testing.