check_grad unit test
Merge branch 'check_grad' of https://github.com/Horta/scipy into check_grad