test register class