fixed error location
added tests for error location
renamed t/*t