lib: more tests