Adds get_latest_created_bugs and its testcase