tests has been ported to Kotlin