Added test2() function