Move testWriteStdIn to newly created RuntimeUtilsTest

Test is more platform-independent, and in correct place