Added comprehensive tests for Gadget model.