Copy in test from mira
From commit:
https://github.com/curationexperts/mira/commit/3c52f6664ca9a9f684cea3e184e208b611914b90