Simplifying elementary test