changed the position of a dtype check
assert_raise
assert_raise