[cmakelists] update cmake with working components
[t/tinytest] update tinytest
[test/*.c] add working tests