set up specs and factories