Fix penalties and add tests
Created by: scarlehoff
These have been broken since a while, but since nobody used them it didn't really matter.
Don't think they will be used but who knows, I added a few tests since (even if they are not used in practice) they ensure that several pieces of the code work well together as they require the correct flavours being set, n3fit
model to be compatible with validphys, etc.