Added back the requirements check on install and wrote tests