Don't farnarkle about with the Repository class when testing ASModel--use a temporary class instead.