refactor AbstractFsRiverTest and format code using intellij to fix the inconsistency with tabs and spaces

# Done
* I extracted some block of code to make methods smaller
* I used some constants to avoid "magic values"
* I reformatted the code using IntelliJ to fix the inconsistency between spaces and tabs. I picked tabs.

I'm waiting for your comments. Thanks for the awesome River.