[All] Move code from Test to Fpm