Tests split

I've put the tests in a tests/ dir and split them into two groups.
We can start restructuring our tests better, and I was hoping @maxf would pick up and do more.