tests: lib: move time to new ztest API

Move test lib/time to use new ztest API.

Signed-off-by: li biao <biao1x.li@intel.com>
2 files changed