Ensuring type on test