fix serialization issues, adds test for deeper network