Added unit tests using null-coalescing operator for methods needing user input