Fixed an error message and added analyser tests
Added tests and fixed argList checking and position reporting