factory,guard and two api passing tests ;)