Pull Request for spec file of core.rb

Pull Request for spec file of core.rb

Committed  spec file with comments for failing specs, let me know if any more enhancements are needed.