* add samples to test nonPublicApi option * add option to test nonPublicApi * update test * update tests