Corrected unit tests based on build configurations