improves cider/refactor-nrepl related tests

- fixes accidentally failing not related tests by closing cider session
- adds more asserts checking that cider related test was run in an cider
  session correctly configure