Fixed tests to actually catch exception to pass