WICKET-5176 StringResourceModel doesn't detach model in some cases

Make sure that StringResourceModel detaches its wrapped model, parameters and defaultValue even when the LoadableDetachableModel is not attached.
Remove the import of org.junit.Assert. It is inherited from WicketTestCase