unit tests for the discreteBar chart
+small fix
+removed debug code