Test for preserve error location #21

Added test to ensure compilation error message contains location of the error in the source

*maybe consider added an example with a mocked file*