refined tablestocharts tests, fixed tablestocharts methods and improved error reporting