Added tests for getOrElse method