TST: multiarray: added tests for PyArray_AsCArray #5313

This commit adds test-cases for PyArray_AsCArray
@juliantaylor I hope I managed the rebase into 1.9.x correctly.