splash: set background window id to root as property
and refactor test code

Change-Id: I3cac21cf3d8e51250e688130865f6beac203969e