Added unit tests to tests.py, updated spatial_learning.py accordingly

Added tests for set_position()
Fixed one line indentation error in set_position() in
spatial_learning.py that made running the program from terminal
unnecessarily slow.