Test for solving "generic error shoudl be never thrown"