started adding more tests for attributes + some comparison infrastructure

The infrastructure is for comparing AST dumps ignoring whitespace etc.