Scanner class test