fixed function calls to prevent deprecated warning.
fixed testcase for update_possibilities