make the test counter actually count, catch an error in the callback functions