Issue #371: mlp unit test

Added mlp unit test.