Added test for setting references on the Loader