Change raise to fail and add test for non-existent languages