Basic input test
Fix serialize bug