[test] Initial unit tests.