fixes test failures - undefined method 'capabilities' for nil:NilClass