Fixed errors in the scanner for certain operations and comments
New test