Added whitebox tests