fixed a bug with instance bound dependencies, updated the test to ensure this keeps working from now on