Added getter Methods and use these in tests