REVERSE_KEY_FUNCTION: tests

added a test to check if a custom key function actually works
also fixed behaviour for old(1.4.x) django