Added javascript tests for the CountStrategy #56