refactored demographic unit tests to its own file, moved test mixins and base classes to init