factored out creation of a decent scanner to new test utility class