More robust test for fix for #10

Ensures that the test passes if and only if the desired callback (func2)
is called. The previous test would also pass if both callbacks were
called, as long as func2 was called last.