Added more tests and fixed bug for requirements plugin