Adding cashreg object and associated unit test.