Initial skeleton and tests

Bringing in code from ndoh
This tests a thing that happens during setup (probably because the original code did it in a post_save hook) and therefore doesn't really provide any value.