Add test for method ex4