Add junit test and topmenu feature.
TODO refactory.