Added several unit tests and test resources