Tests for lib