Adds tests for defined WMS layers in toArrayForSave.