fixed bug in defunt test