Removed obsolete tests, added message serialisation based on the new encoding process.