added metastable state warning

Added warning for metastable state greater than 5
Created function to turn off warnings
Created tests for toggle function and warnings