renamed main methods for testing to test methods