Improved serialization tests
Use binary notation and move to `as_` naming