tests: Add tests for non-priv functions