change methods and add tests/core.py
change methods and add tests/core.py
change methods and add tests/core.py