[#3] Fixed bug in tests by returning fail in the try block and matching with ok.