Fix unit tests for serialization of features