added int only feature and simple tests