bug life cycle in testing with example