set up fixtures properly and write tests