added some tests, sorted out linerr plot