testing badge and background mode