Revert "add factory sample and junit dependency"

This reverts commit 2eabad77de06db861c63dc95b9f3d5a6722b0581.