Migrate concepts tests to use assertThrows()