RF-13582: refactor core packages, remove duplicate tests