Add test to check only once registration of listeners