first draft of register unit tests