Add reject and contains functions and tests