added test case for removeObjectFotKey: