Add test/runtests.jl

First stab at adding some tests. This basically runs the simplified examples and shows their output. For the `kinsol` example also the residuum is checked.