fixed showing custom notice after registration and added tests for this