Added tests for callback restriction