Added ap_tests.js