update a test to check for undefined value when making new habit