added debug tests