test cases: mdfba

wrote some test cases for mdfba