Move lib tests to use new ztest API Part of #47002 effort Signed-off-by: Spoorthy Priya Yerabolu <spoorthy.priya.yerabolu@intel.com>