Fixed copy-and-paste bug, bad Nick
Created unit test class for BayesianJsonWriter