added extract and test methods