add tests for eof problem in scanner
erlang scanner refactoring
Added tests for scan_model