Tests

@mereskin 

Also immediately save challenges and scores. This needs to be tested with example gadgets