Test conditional $delegate creation

Add test that $delegate is not created when not necessary