completed api_test and base_framework