added tests to ensure id() is correct