Fix for issue#308, Added test cases for accessors