Added a db unit test

Unit test now covers update radcheck in AP mode.
Current coverage report:
	percentage of code tested:64%
	untested lines:39-42, 70-72, 76-81, 87-88, 108-111, 125-128, 147, 149-150, 164-166, 171, 176, 200-223, 235-252