fix tests
convert to Kotlin
convert to Kotlin
convert to Kotlin
convert to Kotlin