DATASOLR-128 - corrected asserts done over parameters of methods

tests were added to cover this issue and bug were corrected
https://jira.springsource.org/browse/DATASOLR-128