fixed a integer test to be more general