changed model test to promise test