Added failing test cases for #3725
Fixes #3725: Fixed the bug that the filtering condition used in relation definition was ignored when calling `ActiveRecord::unlinkAll()`
Merge branch 'unlink-tests'