Make KotlinVersion random comparison test running in JS
(and in jvm-only and js-only tests also)
Precondition tests are shared for JS target. Samples do not use assertFailsWith as expression, as it's going to be converted as a special template.