add tests for elimination of loads