Implemented first tests
More tests
More tests.

Also immediately save challenges and scores. This needs to be tested with example gadgets
Merge pull request #1 from Versal/tests

Tests