Adding basic tests to verify the insecure search and secure search methods.
Making getInstance method synchronized to make it thread safe.