Test item attributes are correct if __init__ succeeds...
also fixed newline bug in _get_name method