added scan test to master loop and parser