Adds get_releases function and testcase