new serde class and added tests
added tests