Fixed unit tests
Added error handling for invalid symbol