fix and add tests for offerings_controller