Tests for all public functions