runtests now returns 1 if at least one error has occurred, fix #153