added more tests and functionality for rpm lib