Remove trailing spaces from test_*.jl
Specify exception type in test_throws