tests and fixes for param passing to public fn