Updated tests and fixed bug where caseSensitive was not being considered in filtering