added test functions for errorbar plotting