Added a create_spot method, refactored tests and functions.