added unit tests to pass parameter in a custom api