added test ember app
bug fix
refactoring