adding tests for the Scan class