Slowly adding tests...

and added .so to gitignore. As it has caught me out several times now.