tests using migrations