new test function
new test function of printing messages