improve the unittest and the polyu beamer theme

Signed-off-by: Qu Xiaofeng <quxiaofeng.at.polyu@gmail.com>