Add more unit tests for build checks