added test for err bars