add test case amazon and update core.py