Adds testing methods for different scenarios.