clean up context on build completion & add test

This PR fixes the removal of build context directories from the tmp directory once the build is finished.

It also adds a test to make sure the the context has been properly deleted.
I intend to improve this in the future so you can also know if something is in a and isn't in b and so on. That's why we need the error.