Tests vault

Depends on #143 

This patch now gets the vault endpoint to a 100% test coverage.