added test and solved dependencies