fixed ref tests for the code structure