a bit more general test mixin