common: bringing a few unit tests in from common-test.
common: tests converted to junit4.