fixed finish_dialog_test.rb test to not get stuck

added proper mocking