Updating test.cpp

the test to determine os and and configure the testing parameters accordingly