Integrate automated testing

Hey, as I promised, I've tried to setup automated testing. Right now the tests are quite primitive, but at least we could see whether the code does compile.