Setting up methods for testing