Tests for lib methods