finished tests, moved capabilities.py to structure.py to avoid import confusion