Adding debug mixin

As mentioned in issue #5 this is a debug mixin that can be useful for testing.