Adds test mechanism