Update Test.cpp

Adding a settings function