tests for custom ints