first version of tests, done with Johan Lind