Updated code to build unit tests automatically with the code.