Unit test for digital source circuit