Adding test to confirm #335 is fixed; closes #335