Start adding unit tests for configure

Start to add unit tests for configure.   Currently the test coverage is about 34%.