Fixed compilation

When CLI is not activated and tests are activated