Fixed some fail tests needed to run rspec command correctly.

Still there are some test cases failing.
Merge pull request #1 from moisesweb/setting_up_some_test

Fixed some fail tests needed to run rspec command correctly.
Adds unit tests for all core classes