unit test: secureAPI (100%)