provide unit tests

1- Added a basic unit test to create components
2- Provided methods to aid unit testing