Fixes #371: adding a unit test for softmax regression tutorial