reaching 100% code coverage for core, #14
final changes on errors, fixes #14