Add special method for 1d arrays
Fix deprecation warnings for @test_throws
Fix #2