refactored the test fde method