Add test and fix dependencies.