[PATCH] dinput/tests: Add Reference counting test