Fixed resource name and added unit tests for parameter extraction