lib: fix tests