separate generation of ball from test