some refactoring and adding of very simple feature test for nw front