added whitebox tests