Added tests and updated spatial-learning

Combined scrap.py and spatial-learning.py
Added more unit tests to tests.py