Add spec for lib/nyaplot/core.rb