fixed bug in unit test for deep nets