Add test to check if callback is called only once