Numpy tests

Test for issue #273, Tests pull request #347