Sort imports by type
Add test parser module
Add error field