Implemented build with clean-up
Added tests to build sequence