Added tests for many-output scenarios
Fixed an overflow bug when the subject function has many outputs