added test for public api + helpers