fixing tests under gradle build (as opposed to IDE test run)