added test for exception throwing getter