[test] Adding test for eternity calling of function