add test for calculating error terms for output in back-propagate function