Fixed an issue with encrypt test (create trustdb before test)