Don't recompile the library for tests
Implement type + serialisation for messages