added: Ex4 tests

Hi, Eric.
This is a unit tests for Ex4.
In one of them (test_nnCostFunction_gradCheck) I used Ex4 modules and code and I'm not shure about how legit is it.

Anyway, tests cover all functions except randInitializeWeights.

Best regards
Valentin.