DATASOLR-128 - corrected asserts done over parameters of methods

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