Removed all ‘logical’ elements of tests, since they were causing incorrect failures.
added test_costFunctionReg & included it in the test suite
Merge pull request #1 from etjones/master

Added test_costFunctionReg to ex2 tests