These assertions could probably be DRY'd up IMHO.