refactored param get methods and updated tests