Rewrite callback tests in order not to fail
Created by: PhilipVinc
Callback tests introduced in #488 (closed) fail on a computer fast enough to take less time than the max time... This PR fixes it and rewrite the tests so that they are easier to expand in the future.