Fixes bug && adds util function for making test objects for debugging