Add more tests for is_installed_bucket method

* Add some tests for it
* Use that public api in other tests for the asserts to be more robust
if the internal implementation changes.