Refactoring tests. Putting them in their rightful place
Tested more edge cases for the IDM
Added pom file for maven build and test