remove backends directory
don't rsplit newlines since splitlines does it
Merge pull request #1 from OEP/master

fix some problems with test cases