JC-1395 Added tests for DAO. Fixed case insensitive search.
JC-1395 Fixed replacing of special characters.