failures in tests now passing; code was being returned as string instead of int