start of tests for register.cpp