tests: Add test for constant integer comparison