Yes, the exception occurs only in executing test cases. Infact only on the build system that we use (Jetbrains - Teamcity). Locally when I execute those test cases they pass. I didn't follow why is that the case.