Added tests for search and test for encryption