tests for lib