added some bug-test relation logic