Fixes junit tests to work with intelliJ