add factory sample and junit dependency