tests removed unused code