enum happy path tested
enum error handling added and tested