Add Kotlin builder in tests only if it is needed