Fix namespace references
getCropData throws exceptions if data is invalid
Initial tests