Add test for Js controller helper factory