Fixed package directories and added backend classes and test classes