Add QUnit tests for dice feature