Updated tests with an improved remove_bug test, which does a more complete search for possible bugs