Add self test for dagger

Add self test for dagger