Adds add_release function and testcase