fixed bug in add problem involving test cases not populating properly