added url factory and renamed spec