Fixes broken tests following latest commit. Relates to issue http://dev.gbif.org/issues/browse/POR-1835