Added some tests to activation code. Now we cancels all activations code that don't expires to generated a new one.