Fix test for MacOS (wc is not exactly the same)
Back to simplicity (runtime exception are thrown again)