added scan tests; 1 and 2 work, scan3 does not work properly on gcc or cpi?