Add buffered data classes

Check it and the concept in background
I thought about it. Perhaps rename this test class to BufferedDataTest. Because this test class does not only serialize the BufferedData, but also tests the other methods, like check.