Running from the command line now works, success and failure tested