Improve the assertion failure when testing for an unimplemented attribute