fixed default theme check and adjusted unittest