#802 Added test, issue warning instead of crashing