test the rails model for doi stuff