Split unit test init from testoptions.cpp