added analyze_tests and two tests