Kotlin M8

* Update to Kotlin milestone 8, 
* Some reformat on test 
* Replacing deprecated method calls