add_action second argument missing

You have to say how many parameters your callback function needs. The default is 1, so WordPress will pass just $a. To get more parameters, use the fourth argument for add_action():

add_action('test', 'testing', 10, 2 );