built most of test framework, encryption not working