Add tests and Django > 1.4 compatibility

did not write any code myself, but thought it makes sense to wrap those efforts into a pull request for upstream.