Add testing for unsupported OS and throws error

Add testing for unsupported OS and throws error