Adding Jasmine Tests and fixing some issues found in the core code