added front-end unit test for input field