Add catch undefined and null by value tests