Refactor testbuiltins to reduce repetitive code and re-arrange into the same order as builtins.
Refactor testbuiltins to reduce repetitive code and re-arrange into the same order as builtins.

andybalaam/pepper,andybalaam/pepper,andybalaam/pepper,andybalaam/pepper,andybalaam/pepper