removed unnecessary scanner from test class