Added two tests for checking case. Changed guard value from 9999 to None