fix scanner tests
bug in erlmodule?