I'm not sure if this 'isUnit' test is proper here, but it seems to work as I expect.