Ignore attributes fix

I took #694 and added a test to verify it.