Unit tests for user activation